/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Graph;

/**
 *
 * @author oliviersputael
 */
public class Variables {
	public Variables (String lbl, int cstr) {
		name = lbl;
		constraint = cstr;
	}
	
	public String getName () {
		return name;
	}
	public int getConstraint () {
		return constraint;
	}
	
	@Override
	public boolean equals (Object o) {
		Variables v = (Variables) o;
		boolean result = true;
		
		result = result && (this.name.equals(v.getName()));
		result = result && (this.constraint == v.getConstraint());
		
		return result;
	}
	
	@Override
	public String toString () {
		String toString = "";
		
		toString = toString + name + " (" + constraint + ")";
		
		return toString;
	}
	
	private String name;
	private int constraint;
}
